package regulatoryInteractionsStats.yeast.bioJava;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.HashMap;
import org.biojava3.core.sequence.template.Sequence;


/**
 *
 * @author jamie
 */
public class AlignableGeneFactory extends HashMap<String, AlignableGene>{





    public AlignableGene getAlignableGene(String accession, Sequence sequence){

        if(this.containsKey(accession)){
            return this.get(accession);
        } else {
            AlignableGene ag = new AlignableGene(accession, sequence);
            this.put(accession, ag);
            return ag;

        }

    }

}
